<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/include/global.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title><property:value name="system.title"/> </title>
<link href="${pageContext.request.contextPath}/style/qui/login/skin59/style.css" rel="stylesheet" type="text/css" id="skin"/>
<script type="text/javascript" src="${pageContext.request.contextPath}/component/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/login.js"></script>

<!--修正IE6支持透明png图片start-->
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/method/pngFix/supersleight.js"></script>
<!--修正IE6支持透明png图片end-->

<!--居中显示start-->
<script type="text/javascript" src="${pageContext.request.contextPath}/style/qui/js/method/center-plugin.js"></script>
<script>
	$(function(){
		 $('.login_main').center();
		 $("#username").focus();
	})
	
		function register(){
		if(!confirm("如果是首次登录请先注册，确实要进入注册页面吗？")){
			return;
		}
		window.location="${pageContext.request.contextPath}/register/userRegister.jsp";
	}
</script>
<!--居中显示end-->
<style>
/*提示信息*/	
#cursorMessageDiv {
	position: absolute;
	z-index: 99999;
	border: solid 1px #cc9933;
	background: #ffffcc;
	padding: 2px;
	margin: 0px;
	display: none;
	line-height:150%;
}
/*提示信息*/
</style>
</head>
<body>
	<div class="login_main">
		<div class="login_top">
		</div>
		<div class="login_middle">
			<%
				//String isVerify= PropertyUtil.getProperty("login.verify");
				pageContext.setAttribute("isVerify","false");						
			%>
			<c:choose>
			<c:when test="${isVerify=='true'}" >
			<div class="login_middleleft_verify"></div>
			<div class="login_middlecenter_verify">
				<form action="${pageContext.request.contextPath}/login.jspa" method="post" class="login_form">
				<div class="login_user_verify"><input type="text" name="username" id="username" value="" /></div>
				<div class="login_pass_verify"><input type="password" name="password" value="" /></div>
				<div class="login_verify"><input type="text" name="verifyCode" value="" />
				<span id="verifypic" class="login_verifypic"><img border="0" src="${pageContext.request.contextPath}/code.jpg"/></span></div>
				<div class="clear"></div>
				<div class="login_button">
					<div class="login_button_left_verify"><input type="button" onclick="register();" value="" onfocus="this.blur()"/></div>
					<div class="login_button_right_verify"><input type="submit" value="" onfocus="this.blur()"/></div>
					<div class="clear"></div>
				</div>
				</form>
			</div>
			</c:when>
			<c:otherwise>
			<div class="login_middleleft"></div>
			<div class="login_middlecenter">
					<form action="${pageContext.request.contextPath}/login.jspa" method="post" class="login_form">
					<div class="login_user"><input type="text" name="username" id="username" value="admin" /></div>
					<div class="login_pass"><input type="password" name="password" value="admin" /></div>
					<div class="clear"></div>
					<div class="login_button">
						<div class="login_button_left_verify"><input type="button" onclick="register();" value="注册" onfocus="this.blur()"/></div>
						<div class="login_button_right_verify"><input type="submit" value="登录" onfocus="this.blur()"/></div>
						<div class="clear"></div>
					</div>
					</form>
			</div>
					</c:otherwise>
				</c:choose>
			<div class="login_middleright"></div>
			<div class="clear"></div>
		</div>
		<div class="login_bottom">
			<div class="login_copyright">主办单位：临汾市科学技术局&nbsp;&nbsp;&nbsp;&nbsp;技术支持：山西省科学技术厅信息中心</div>
		</div>
	</div>
	<div class="login_skin"><span onclick='top.Dialog.open({URL:"login/useSkin.html",Title:"皮肤更换方法",Width:720,Height:490});'>皮肤更换方法</span></div>
	
<jsp:include page="include/popmessage.jsp"/>
</body>
</html>
